package systeme_reservation;

import java.util.LinkedList;

import polytech.*;

public class Creation_Batiments {

	Batiment batest = new Batiment("est",3);
	Batiment batouest= new Batiment("ouest",2);

	public Creation_Batiments(){}

	public LinkedList<Batiment> create (){
		//Creation batiment Ouest
		Salle_Amphi samphi=new Salle_Amphi(300, "A1", 0);
		batouest.add_salle(samphi);
		
		Salle_Reunion sreu=new Salle_Reunion(100, "R1", 0);
		batouest.add_salle(sreu);

		for(int i=0;i<5;i++){
			Salle_Cours s = new Salle_Cours(50, "0"+String.valueOf(i+1), 0);
			batouest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			Salle_TD s = new Salle_TD(30, "0"+String.valueOf(i+1), 1);
			batouest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			Salle_TP_Portable s = new Salle_TP_Portable(30, "0"+String.valueOf(i+1), -1, true, true);
			batouest.add_salle(s);
		}
		for(int i=0;i<3;i++){
			Salle_TP_Fixe s = new Salle_TP_Fixe(30, "0"+String.valueOf(i+1), -1, true, true, "Win/Linux");
			batouest.add_salle(s);
		}

		//Creation batiment Est
		Salle_Amphi samphi2=new Salle_Amphi(300, "A2", 0);
		batest.add_salle(samphi2);

		for(int i=0;i<5;i++){
			Salle_Cours s = new Salle_Cours(50, "0"+String.valueOf(i+1), 0);
			batest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			Salle_TD s = new Salle_TD(40, "0"+String.valueOf(i+1), 1);
			batest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			Salle_TP_Portable s = new Salle_TP_Portable(30, "0"+String.valueOf(i+1), -1, true, true);
			batest.add_salle(s);
		}
		for(int i=0;i<3;i++){
			Salle_TP_Fixe s = new Salle_TP_Fixe(30, "0"+String.valueOf(i+1), -1, true, true, "Win/Linux");
			batest.add_salle(s);
		}

		LinkedList<Batiment> ll = new LinkedList<Batiment>();
		ll.add(batouest);
		ll.add(batest);
		return ll;

	}
}
